CompareIDs Method (Session Object) 

The CompareIDs method determines whether two OLE Messaging Library objects are the same object.

Syntax

objSession.CompareIDs(ID1, ID2)

Parameters

objSession

Required. The Session object.

ID1

Required. The identifier of the first object to be compared.

ID2

Required. The identifier of the second object to be compared.

 

Remarks

The CompareIDs method compares the identifiers of two arbitrary OLE Messaging Library objects and returns True if they are the same object. Two objects are considered to be the same if and only if they are instantiations of the same physical (persistent) object. Two objects with the same value are still considered different if they do not instantiate the same physical object, for example if one is a copy of the other. In such a case CompareIDs returns False.

The CompareIDs method ultimately calls one of the MAPI CompareEntryIDs methods to determine if two objects are the same. Several OLE Messaging Library objects also provide the IsSameAs method for a comparison of two identifiers of that particular object type.